﻿<!DOCTYPE html>
<html>
<head>
    <title>Sistema de Gestión de Formación Profesional &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v1.01</title>
    @Content.Stylesheet("css/Master.css", Url)
    @Content.Stylesheet("MVCFramework.css", Url)
    @Content.Stylesheet("redmond/jquery-ui-1.8.18.custom.css", Url)
    @Content.Stylesheet("css/Pager.css", Url)
    @RenderSection("Stylesheets", false)
</head>
<body>
    @{var result = Html.Action("IsAdminMode", "Home");
      string rol = result.ToHtmlString();   }
    <input type="hidden" name="CurrentDate" id="CurrentDate" value="@System.DateTime.Today" />
    <div id="wrap">
        <div id="header">
            <table style="height: 130px; width: 100%" cellpadding="0" cellspacing="0">
                <tr style="width: 100%; height: 100px">
                    <td style="width: 70%">
                    </td>
                    <td style="width: 30%">
                    </td>
                </tr>
                <tr style="width: 100%; height: 20px;">
                    <td align="right" colspan="2" valign="bottom">@Html.Action("GetLoguedUser", "Account")&nbsp;&nbsp;
                    </td>
                </tr>
            </table>
        </div>
        <div id="menu">
            <ul>
                <li @{if (ViewBag.Title.Contains("Inicio"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Inicio", "Index", "Home", null, null)</li>
                <li @{if (ViewBag.Title.Contains("Instituciones"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Instituciones", "Index", "Instituciones", null, null)</li>
                <li @{if (ViewBag.Title.Contains("Superviciones"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Supervisiones", "Index", "Superviciones", null, null)</li>
                <li @{if (ViewBag.Title.Contains("Inscripciones"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Inscripciones", "Index", "Inscripciones", null, null)</li>
                <li @{if (ViewBag.Title.Contains("Facturaciones"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Facturaciones", "Index", "Factura", null, null)</li>
                <li @{if (ViewBag.Title.Contains("Equipamientos"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Equipamientos", "Index", "Equipamientos", null, null)</li>
                <li @{if (ViewBag.Title.Contains("Inscripciones"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Inscripciones", "Examenes", "Inscripciones", null, null)</li>
                <li @{if (ViewBag.Title.Contains("Usuarios"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Usuarios", "Index", "Usuario", null, null)</li>
                <li @{if (ViewBag.Title.Contains("Ayuda"))
                      {@Html.Raw("class=\"selected\"") }}>@Html.ActionLink("Ayuda", "Index", "Ayuda", null, null)</li>
            </ul>
        </div>
        <div id="content">
            <div class="right">
                @RenderBody()
            </div>
            @if (ViewBag.Title != "Inicio")
            {
                <div class="left">
                    <h2>
                        Categorías :</h2>
                    <ul>
                        @{ if (ViewBag.Title.Contains("Instituciones"))
                           {
                            <li>@Html.ActionLink("Gestión Instituciones", "Index", "Instituciones", null, new { @class = ViewBag.SubMenuSelected == "Instituciones" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Gestión Docentes", "Index", "Docentes", null, new { @class = ViewBag.SubMenuSelected == "Docentes" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Gestión Cargos Docentes", "Index", "Cargos", null, new { @class = ViewBag.SubMenuSelected == "Cargos" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Catálogo de Especialidades", "Index", "Cursos", null, new { @class = ViewBag.SubMenuSelected == "Cursos" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Gestión Tipos Cursos", "Index", "AreaTipoCurso", null, new { @class = ViewBag.SubMenuSelected == "TiposCursos" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Gestión Modalidad", "Index", "Modalidad", null, new { @class = ViewBag.SubMenuSelected == "Modalidad" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Gestión Programas", "Index", "Programas", null, new { @class = ViewBag.SubMenuSelected == "Programas" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Gestión Alumnos", "Index", "Alumnos", null, new { @class = ViewBag.SubMenuSelected == "Alumnos" ? "selected" : "" })</li>
                           }
                           if (ViewBag.Title.Contains("Inscripciones"))
                           {
                            
                            <li>@Html.ActionLink("Gestión Inscripciones", "Index", "Inscripciones", null, new { @class = ViewBag.SubMenuSelected == "Inscripciones" ? "selected" : "" })</li> 
                            <li>@Html.ActionLink("Gestión Exámenes", "Examenes", "Inscripciones", null, new { @class = ViewBag.SubMenuSelected == "Examenes" ? "selected" : "" })</li>  
                            <li>@Html.ActionLink("Gestión Presentismo", "Presentismo", "Inscripciones", null, new { @class = ViewBag.SubMenuSelected == "Presentismo" ? "selected" : "" })</li>  
                            <li>@Html.ActionLink("Emitir Certificado", "Certificado", "Inscripciones", null, new { @class = ViewBag.SubMenuSelected == "Certificado" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Reportes", "Reportes", "Inscripciones", null, new { @class = ViewBag.SubMenuSelected == "Reportes" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Gestión Supervisiones", "Index", "Superviciones", null, new { @class = ViewBag.SubMenuSelected == "Superviciones" ? "selected" : "" })</li> 
                            <li>@Html.ActionLink("Gestión Supervisores", "Index", "Supervisores", null, new { @class = ViewBag.SubMenuSelected == "Supervisores" ? "selected" : "" })</li>
                           }

                           if (ViewBag.Title.Contains("Equipamientos"))
                           {
                            <li>@Html.ActionLink("Gestión de Equipos", "Index", "Equipamientos", null, new { @class = ViewBag.SubMenuSelected == "Equipos" ? "selected" : "" })</li> 
                            <li>@Html.ActionLink("Gestión de Préstamos", "Index", "Prestamos", null, new { @class = ViewBag.SubMenuSelected == "Prestamos" ? "selected" : "" })</li>
                            <li>@Html.ActionLink("Gestión de Inventarios", "Index", "Inventarios", null, new { @class = ViewBag.SubMenuSelected == "Inventarios" ? "selected" : "" })</li>
                           }

                           if (ViewBag.Title.Contains("Facturaciones"))
                           {
                            <li>@Html.ActionLink("Gestión Factura", "Index", "Factura", null, new { @class = ViewBag.SubMenuSelected == "Facturacion" ? "selected" : "" })</li> 
                            <li>@Html.ActionLink("Liquidación Cursos", "LiquidarFactura", "Factura", null, new { @class = ViewBag.SubMenuSelected == "Liquidacion" ? "selected" : "" })</li> 
                           }
                           if (ViewBag.Title.Contains("Usuarios"))
                           {
                            <li>@Html.ActionLink("Gestión Usuarios", "Index", "Usuario", null, new { @class = ViewBag.SubMenuSelected == "Usuarios" ? "selected" : "" })</li> 
                           }

                           if (ViewBag.Title.Contains("Ayuda"))
                           {
                            <li>@Html.ActionLink("Gestión Institución", "Index", "Ayuda", null, new { @class = ViewBag.SubMenuSelected == "Instituciones" ? "selected" : "" })</li> 
                           }
                       
                        }
                    </ul>
                </div>
            }
            <div style="clear: both;">
            </div>
        </div>
        <div id="footer">
            Copyright - Términos de Uso - Gobierno de Córdoba - Contáctenos
        </div>
    </div>
    @Content.Script("jquery-1.5.1.min.js", Url)
    @Content.Script("jquery.unobtrusive-ajax.min.js", Url)
    @Content.Script("jquery.validate.min.js", Url)
    @Content.Script("jquery.validate.unobtrusive.min.js", Url)
    @Content.Script("jquery-ui-1.8.11.min.js", Url)
    @Content.Script("jquery.maskedinput-1.3.min.js", Url)
    @Content.Script("CbaGob.Alumnos.Global.js", Url)
    @Content.Script("cbaGob.Alumnos.SetFront.js", Url)
    @Content.Script("jquery.pager.js", Url)
    @Content.Script("smartpaginator.js", Url)
    @Content.Script("jquery.placeholder-1.1.9.js", Url)
    @Content.Script("jquery.ui.datepicker-es.js", Url)
    @Content.Script("jQueryFixes.js", Url)
    @RenderSection("Scripts", false)
</body>
</html>
